#include <stdio.h>
int del(int* p,int size,int x)
{
	int l1 = 0;
	int l2 = 0;
	while (l1 < size)
	{
		if (p[l1] == x)
		{
			l1++;
		}
		else
		{
			p[l2++] = p[l1++];
		}
	}
	return l2;
}
int main()
{
	int arr[] = { 1,2,3,4,3,4,6,4};
	int n = sizeof(arr) / sizeof(arr[0]);
	int ret=del(arr,n,4);
	for (int i = 0; i < ret; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}

